<?php
				require_once 'CheckoutView.php';
				
				if($_GET['flag']==1){//the user confirms deletion
				
				if($_GET['mode']=="perm"){
				CheckoutView::deleteStudent($_GET['snum']);
				}else if($_GET['mode']=="temp"){
				CheckoutView::updateStudent($_GET['snum']);
				}
				
				}else{//the user did not confirm deletion
				header("Location:checkoutForm.php");
				}


?>